import com.msy.springcloud.dao.DeptDao;
import com.msy.springcloud.pojo.Dept;
import com.msy.springcloud.service.DeptService;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.List;

/**
 * @date 2020/11/22 - 19:02
 */
@SpringBootTest
public class test {
    @Autowired
    DeptService deptService;
    @Test
    public void queryAll() {
        List<Dept> depts = deptService.queryAll();
        for (Dept dept : depts) {
            System.out.println(dept);
        }
    }
}
